package pattern.template_method;

public class UserDayOffProcess extends DayOffProcess {
    private UserDayOffProcess() {
    }
    private String name;
    private String depName;

    public UserDayOffProcess(String name, String depName) {
        this.name = name;
        this.depName = depName;
    }

    @Override
    protected void submit() {
        System.out.println("提交到" + this.depName + "审批");
    }

    @Override
    protected void signUp() {
        System.out.println(this.name + "签名");
    }
}
